// 垂直的列表
import 'package:flutter/material.dart';
import '../home_main_view.dart';
import 'mylisttile.dart';

class VerticalListView extends StatelessWidget {
  const VerticalListView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ListView(
      scrollDirection: Axis.vertical, //垂直滑动
      // scrollDirection: Axis.horizontal, //垂直滑动
      padding: EdgeInsets.all(5.0), //内间距
      children: [
        Container(
          child: Image.network(
              "https://img2.baidu.com/it/u=3666548066,2508071679&fm=26&fmt=auto",
              fit: BoxFit.cover,
            ),
            padding: EdgeInsets.fromLTRB(0, 0, 0, 10),
        ),
        Container(
          child: Image.network(
              "https://img2.baidu.com/it/u=3666548066,2508071679&fm=26&fmt=auto",
              fit: BoxFit.cover,
            ),
            padding: EdgeInsets.fromLTRB(0, 0, 0, 10),
        ),
        Container(
          child: Image.network(
              "https://img2.baidu.com/it/u=3666548066,2508071679&fm=26&fmt=auto",
              fit: BoxFit.cover,
            ),
            padding: EdgeInsets.fromLTRB(0, 0, 0, 10),
        ),
        VerticalListTile(),
        VerticalListTile()
      ],
    );
  }
}
